import cartStore from "@/store/cartStore"
import { BehaviorWithStore } from "mobx-miniprogram-bindings"

const cartBehaviors = BehaviorWithStore({
  storeBindings: {
    store: cartStore,
    fields: ["cartList","isCheckedAll","totalPrice"],
    actions: ["addCart","fetchCartList","deleteCart","changeGoodChecked"]
  }
})

export default cartBehaviors